!/bin/sh

wget http://libregamenight.xyz/pub/xonotic/linux.tar.gz

tar -zxvf linux.tar.gz
cd xonotic

echo ''
echo "Time to reap the profits, now!"
echo "If everything, went smoothly, you're now in the directory with the binaries."
echo "Run the one that seems appropriate for your system."
echo "(With a period, slash, and then file-name-- like './binary' for a binary called binary)"
if [ $(arch) = "x86_64" ]
    then
        echo "You should run one of these files:"
        ls | grep "linux64"
    else
        echo "You should run one of these files:"
        ls | grep "linux32"
fi
echo "Cheers!"
